def print_compact_go_board(size):
    # 紧凑版棋盘：用"+-"代替"+---"，用"| "代替"|   "
    for i in range(size):
        # 打印紧凑横线（交叉点+短线）
        for j in range(size):
            print("+-", end="")
        print("+")  # 横线结尾
        # 打印紧凑竖线（竖线+空格）
        for j in range(size):
            print("| ", end="")
        print("|")  # 竖线结尾
    # 最后一行横线闭合棋盘
    for j in range(size):
        print("+-", end="")
    print("+")

# 打印紧凑版15×15棋盘
print_compact_go_board(15)